public class Test17 {
    public static void main(String[] args) {
        Animal a = new Dog();
        a.speak();
        a.wagTail();
    }
}